package book;
public class Booklist {


    private Book[] books = new Book[10];
    private int UesdSize;
    public Booklist(){
        this.books[0] = new Book("三国演义","罗贯中",10,"小说");
        this.books[1] = new Book("西游记","吴承恩",59,"小说");
        this.books[2] = new Book("红楼梦","曹雪芹",16,"小说");
        UesdSize = 3;

    }

    public Book[] getBooks() {
        return books;
    }

    public void setBook(int pos,Book book) {
        this.books[pos] = book;
    }

    public Book getBook(int pos){
        return books[pos];
    }

    public int getUesdSize() {
        return UesdSize;
    }

    public void setUesdSize(int uesdSize) {
        this.UesdSize = uesdSize;
    }

}
